package com.lk.service;

import java.util.List;

import com.lk.dao.MaterialDao;
import com.lk.entity.Material;

public class MaterialService {
	
	MaterialDao dao = new MaterialDao();
	
	public void save(Material m){
		dao.save(m);
	}
	
	public Material findById(String t_project_id,String t_employee_id){
		return dao.findById(t_project_id, t_employee_id);
	}
	
	public List<Material> findAll(){
		return dao.findAll();
	}
	
	public Material findByMaterialId(String m_id){
		return dao.findByMaterialId(m_id);
	}
	
	public void delByMaterialId(String m_id){
		dao.delByMaterialId(m_id);
	}
	
	public void update(Material m){
		dao.update(m);
	}
}
